package com.ruoyi.project.monitor.server.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.monitor.server.domain.Server;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.core.handle.ModelAndView;

/**
 * 服务器监控
 * 
 * @author ruoyi
 */
@Controller
@Mapping("/monitor/server")
public class ServerController extends BaseController
{
    private String prefix = "monitor/server";

    @RequiresPermissions("monitor:server:view")
    @Mapping()
    public String server(ModelAndView mmap) throws Exception
    {
        Server server = new Server();
        server.copyTo();
        mmap.put("server", server);
        return prefix + "/server";
    }
}
